package ${package};

import ${packageBase}.core.vo.PageVO;

import org.hibernate.validator.constraints.Length;
import javax.validation.Valid;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * ${tableComment} 搜索分页模型
 *
 * @author motorfu
 * @email ffu@maxleap.com
 * @since ${date}
 */
@Data
public class ${className}SearchVO extends PageVO<${className}SearchVO.${className}Params> {

  @Valid
  private ${className}SearchParams searchParams;

  @Data
  public static class ${className}SearchParams {
    // 搜索全部项
    private String all;
    private Long id;
  <#list columnList as column>
   <#if column.column_className == 'String'>
    @Length(max = ${column.column_length}, message = "${column.column_comment}内容超出长度")
    @ApiModelProperty(notes = "${column.column_comment}")
    private ${column.column_className} ${column.column_name};
   </#if>
  </#list>
  }

  @Data
  public static class ${className}Params {

  }
}
